//
//  LanguageSetViewController.m
//  Bees
//
//  Created by NowYouCanSee on 2018/12/28.
//  Copyright © 2018 xiaohan. All rights reserved.
//

#import "LanguageSetViewController.h"

@interface LanguageSetViewController ()

@end

@implementation LanguageSetViewController

- (instancetype)init
{
    return [super initWithStyle:UITableViewStylePlain];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupUI];
}
- (void)setupUI{
    LMJWordArrowItem *item0 = [LMJWordArrowItem itemWithTitle:@"中文" subTitle:@""];
    item0.cellHeight = 60.0f;
    item0.itemOperation = ^(NSIndexPath *indexPath) {
        [XLocalzableTool changeLocalzable:kHansLanguage];
    };
    LMJWordArrowItem *item1 = [LMJWordArrowItem itemWithTitle:@"English" subTitle: @""];
    item1.cellHeight = 60.0f;
    item1.itemOperation = ^(NSIndexPath *indexPath) {
        [XLocalzableTool changeLocalzable:kEnLanguage];
    };
    LMJItemSection *section = [LMJItemSection sectionWithItems:@[item0,item1] andHeaderTitle:nil footerTitle:nil];
    [self.sections addObject:section];
    self.tableView.tableFooterView = [UIView new];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
